var s = getApp();

Component({
    properties: {
        show: {
            type: Boolean,
            value: !1
        }
    },
    data: {
        address: ""
    },
    observers: {
        show: function(s) {
            this.setData({
                address: ""
            });
        }
    },
    methods: {
        focus: function() {
            this.setData({
                focusTrue: !0
            });
        },
        cancelFocus: function() {
            this.setData({
                focusTrue: !1
            });
        },
        onClose: function() {
            this.triggerEvent("address_parseClose");
        },
        inpblur: function(s) {
            this.setData({
                address: s.detail.value
            });
        },
        toPostMethod: function() {
            var t = this, e = s.getNetAddresss("plugin.address-parse.frontend.index");
            s._getNetWork({
                url: e,
                data: {
                    address: this.data.address
                },
                success: function(e) {
                    var a = e.data;
                    a.result ? t.triggerEvent("toPostMethod", a.data) : s.tips(a.msg);
                },
                fail: function(s) {
                    console.log(s);
                }
            });
        }
    }
});